package cn.edu.xhu.library_management.iot.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Author: MMJ
 * @Date: 2023 - 05 - 01
 * @Description: 机器控制
 */

public enum MachineControl {
    LED_ON("LED",1), // 开灯
    LED_OFF("LED",0), // 关灯
    BEEP_ON("BEEP",1), // 开警报
    BEEP_OFF("BEEP",0), // 关警报
    WINDOW_ON("Windows",1), // 开窗户
    WINDOW_OFF("Windows",0), // 关窗户
    FAN_ON("Fan",1), // 开窗户
    FAN_OFF("Fan",0);// 关窗户


    private String machine;
    private int status;
    MachineControl(String led, int i) {
    }

    public String getMachine() {
        return machine;
    }

    public void setMachine(String machine) {
        this.machine = machine;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
